<%= render :partial => "nav_bar" %>
<%= render :partial => "layouts/top_stories" %>
<div class="left_articles">

<!-- BEGIN CONTENT -->

<h2>Stories Tagged: <%=h @tag.name %></h2>

<BR>
<% @tag.stories.each do |story| %>
  <p class="index_story"><%= link_to story.title, story %> [Rating: <%= story.story_rating %>]
  <BR><span class="index_summary"><%= story.summary %></span>
  <BR><span class="index_details">rating: <%= story.story_rating %> | genre:
		<% if story.typ %>
			<%= story.typ.downcase %>
		<% else %>
			prose
		<% end %>
		| created by <%= link_to story.user.login, user_path(story.user) %> on <%= story.created_at.strftime('%m/%d/%Y') %></span>
  </p>
<% end %>

<%= link_to 'Edit Tag', edit_tag_path(@tag) %> |
<%= link_to 'Destroy Tag', @tag, :confirm => 'Are you sure?', :method => :delete %> |
<%= link_to 'Back to Tag Cloud', tags_path %> 

<!-- END CONTENT -->
</div>
</div>
<%= render :partial => "layouts/right_bar" %>